@extends('admin.layout.layout', ['row' => @$page])

@section('contain')


    <div class="portlet">
        <div class="portlet-title">
            <div class="caption">
                <x-portlet-breadcrumb :page="$page"></x-portlet-breadcrumb>
            </div>
            <div class="actions">
                {{--<div class="item">
                    <a href="/{{ request()->path() }}/create" class="btn btn-sm btn-primary">{{ ts('addnew') }}</a>
                </div>--}}
            </div>
        </div>

        <div class="my-3 bg-light p-3 px-4">
            <div class="row">
                <div class="col-auto">
                    <b>套件ID</b>：
                    <span>{{ @$roll->precut_id }}</span>
                </div>
            </div>
        </div>

        <div>
            <h3 class="section_sub_title">{{ ts('DHJL') }}</h3>
            <table class="table text-center" data-toggle="table">
                <thead>
                <tr>
                    <th>{{ ts('sequence') }}</th>
                    <th>{{ ts('DHYY') }}</th>
                    <th>{{ ts('fqfsdmd') }}</th>
                    <th>{{ ts('jsfsdmd') }}</th>
                    <th>{{ ts('SQDHSJ') }}</th>
                    <th>{{ ts('EFFECTIVEDATE') }}</th>
                    <th>{{ ts('status') }}</th>
                </tr>
                </thead>
                <tbody>
                @foreach($details as $k=>$v)
                    <tr>
                        <td>{{ $k+1 }}</td>
                        <td>{{ @$v->note }}</td>

                        <td>
                            @if($v->yuser_type == 3)
                                {{ @$v->ysdmc }} / {{ @$v->ygmsmc }}
                            @else
                                {{ @$v->ygmsmc }}
                            @endif
                            {{--{{ @$v->ygmsmc }}--}}
                        </td>
                        <td>

                            @if($v->xuser_type == 3)
                                {{ @$v->xsdmc }} / {{ @$v->xgmsmc }}
                            @else
                                {{ @$v->xgmsmc }}
                            @endif
                            {{--{{ @$v->xgmsmc }}--}}
                        </td>
                        <td>{{ fdate2(@$v->created_at) }}</td>
                        <td>{{ fdate2(@$v->approved_date) }}</td>
                        <td>{{ ts('sta'.@$v->approved) }}</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

    </div>


@endsection

@section('script')

@endsection